home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1997 August
/
Macworld (1997-08).dmg
/
Shareware World
/
Comms & Internet
/
PageSpinner 2.0.1
/
Settings
/
FTP
/
Scripts
/
Anarchie Save To FTP Server.txt
next >
Wrap
Text File
|
1997-06-17
|
967b
|
51 lines
global gDesturl
global gPrevurl
property gNumTransfers : 0
on specify_destination()
global gDesturl
local prefsFile
set gNumTransfers to gNumTransfers + 1
tell application "PageSpinner"
set thePath to ((get PageSpinner folder) as text) & "Settings:FTP:FTP Server Settings"
end tell
set prefsFile to open for access file thePath
set gDesturl to read prefsFile
if (gNumTransfers is 1) then
set gPrevurl to "*"
end if
close access of the prefsFile
end specify_destination
on open doc
global gDesturl
global gPrevurl
specify_destination()
with timeout of 60000 seconds
tell application "Anarchie"
store doc url gDesturl with binary
beep
if gPrevurl is not gDesturl then -- display file list the first time we use this url
list url gDesturl with window
set gPrevurl to gDesturl
end if
end tell
end timeout
end open
on quit
set gNumTransfers to 0
continue quit
end quit
on run
specify_destination()
end run